home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / raytracers / _pvray / pv / scenes / tcubic < prev    next >
Encoding:
Text File  |  1991-11-03  |  1.4 KB  |  67 lines

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Alexander Enzmann
  4. { sample quartic data file written by Alexander Enzmann }
  5.  
  6. #include "<PVray$Dir>.dat.shapes"
  7. #include "<PVray$Dir>.dat.colors"
  8. #include "<PVray$Dir>.dat.textures"
  9.  
  10. { Cubic curve - can make a nice teardrop by cleverly adding a clipping plane }
  11. object
  12.    intersection
  13.      quartic
  14.      < 0.0   0.0   0.0   -0.5  0.0   0.0   0.0   0.0   0.0 -0.5
  15.        0.0   0.0   0.0    0.0  0.0   0.0   0.0   0.0   0.0  0.0
  16.        0.0   0.0   0.0    0.0  0.0   1.0   0.0   0.0   0.0  0.0
  17.        0.0   0.0   1.0    0.0  0.0 >
  18.        texture
  19.          color CRed
  20.      phong 1.0
  21.      diffuse 0.8
  22.      ambient 0.2
  23.        end_texture
  24.      end_quartic
  25.      sphere <0 0 0> 2
  26.        texture
  27.          color Clear
  28.        end_texture
  29.      end_sphere
  30.    end_intersection
  31.    bounded_by
  32.      sphere <0 0 0> 2.2 end_sphere
  33.    end_bound
  34.    rotate <0 20 0>
  35. end_object
  36.  
  37. view_point
  38.    location  <0.0  0.0 -5.0>
  39.    direction <0.0  0.0  1.0>
  40.    up        <0.0  1.0  0.0>
  41.    right     <1.33 0.0  0.0>
  42. end_view_point
  43.  
  44. object
  45.    sphere <0 0 0> 1 end_sphere
  46.    translate <200 30 -300>
  47.    texture
  48.      color White
  49.      ambient 1.0
  50.      diffuse 0.0
  51.    end_texture
  52.    light_source
  53.    colour White
  54. end_object
  55.  
  56. object
  57.    sphere <0 0 0> 1 end_sphere
  58.    translate <-200 30 -300>
  59.    texture
  60.      color White
  61.      ambient 1.0
  62.      diffuse 0.0
  63.    end_texture
  64.    light_source
  65.    colour White
  66. end_object
  67.